<h1>Editing event: <%= @event.name %></h1>

<% form_for(@event) do |f| %>
  <%= f.error_messages %>

  <h3>Event Information </h3>
  <p>
    <%= f.label :name %><br />
    <%= f.text_field :name %>
  </p>
  <p>
    <%= f.label :starts_at %><br />
    <%= f.calendar_date_select :starts_at, :time => true, :popup => :force  %>
  </p>
  <p>
    <%= f.label :ends_at %><br />
    <%= f.calendar_date_select :ends_at, :time => true, :popup => :force  %>
  </p>
  <h3>Personnel Requirements</h3>
  <p>
    <%= image_tag("/images/icons/roles/16-volunteer.png") %>
    <%= f.label :volunteers_req, "Volunteers Required" %><br />
    <%= f.text_field :volunteers_req %>

  </p>
  <p>
    <%= image_tag("/images/icons/roles/16-keyholder.png") %>
    <%= f.label :keyholders_req, "Keyholders Required" %><br />
    <%= f.text_field :keyholders_req %>
  </p>
  <p>
    <%= image_tag("/images/icons/roles/16-boardmember.png") %>
    <%= f.label :boardmembers_req, "Boardmembers Required" %><br />
    <%= f.text_field :boardmembers_req %>
  </p>
  <p>
    <%= f.submit 'Update' %>
  </p>
<% end %>